package main

import "fmt"

func main() {
	ratings := []int{5, 4, 5, 5, 3} // 创建一个切片,这不是数组

	fmt.Println(ratings)
	ratings[2] = 3
	fmt.Println(ratings)
	fmt.Println("Length of ratings slice is:", len(ratings))

	coffeeTypes := make([]string, 3)
	fmt.Println("Coffee types:", coffeeTypes)
	coffeeTypes[0] = "Cappuccino"
	coffeeTypes[1] = "Latte"
	coffeeTypes[2] = "Espresso"

	fmt.Println("Coffee types after reassignment:", coffeeTypes)

}
